package com.stefanie.study.fp;

/**
 * @author: stefanie-zy
 * @time: 2024/6/27-16:51
 * @description: 工厂模式-具体工厂
 */
public class ConcreteFactoryB implements Factory {

    @Override
    public Product create() {
        ConcreteProductB concreteProductB = new ConcreteProductB();
        concreteProductB.setSku("prod-");
        concreteProductB.setName("B");
        return concreteProductB;
    }
}
